package com.shzu.pojo;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
@Component
public class MajorCourseChooseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MajorCourseChooseExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMidIsNull() {
            addCriterion("mid is null");
            return (Criteria) this;
        }

        public Criteria andMidIsNotNull() {
            addCriterion("mid is not null");
            return (Criteria) this;
        }

        public Criteria andMidEqualTo(String value) {
            addCriterion("mid =", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotEqualTo(String value) {
            addCriterion("mid <>", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThan(String value) {
            addCriterion("mid >", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidGreaterThanOrEqualTo(String value) {
            addCriterion("mid >=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThan(String value) {
            addCriterion("mid <", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLessThanOrEqualTo(String value) {
            addCriterion("mid <=", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidLike(String value) {
            addCriterion("mid like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotLike(String value) {
            addCriterion("mid not like", value, "mid");
            return (Criteria) this;
        }

        public Criteria andMidIn(List<String> values) {
            addCriterion("mid in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotIn(List<String> values) {
            addCriterion("mid not in", values, "mid");
            return (Criteria) this;
        }

        public Criteria andMidBetween(String value1, String value2) {
            addCriterion("mid between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andMidNotBetween(String value1, String value2) {
            addCriterion("mid not between", value1, value2, "mid");
            return (Criteria) this;
        }

        public Criteria andDidIsNull() {
            addCriterion("did is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("did is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(String value) {
            addCriterion("did =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(String value) {
            addCriterion("did <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(String value) {
            addCriterion("did >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(String value) {
            addCriterion("did >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(String value) {
            addCriterion("did <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(String value) {
            addCriterion("did <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLike(String value) {
            addCriterion("did like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotLike(String value) {
            addCriterion("did not like", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<String> values) {
            addCriterion("did in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<String> values) {
            addCriterion("did not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(String value1, String value2) {
            addCriterion("did between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(String value1, String value2) {
            addCriterion("did not between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andChoosecourseIsNull() {
            addCriterion("chooseCourse is null");
            return (Criteria) this;
        }

        public Criteria andChoosecourseIsNotNull() {
            addCriterion("chooseCourse is not null");
            return (Criteria) this;
        }

        public Criteria andChoosecourseEqualTo(String value) {
            addCriterion("chooseCourse =", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseNotEqualTo(String value) {
            addCriterion("chooseCourse <>", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseGreaterThan(String value) {
            addCriterion("chooseCourse >", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseGreaterThanOrEqualTo(String value) {
            addCriterion("chooseCourse >=", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseLessThan(String value) {
            addCriterion("chooseCourse <", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseLessThanOrEqualTo(String value) {
            addCriterion("chooseCourse <=", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseLike(String value) {
            addCriterion("chooseCourse like", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseNotLike(String value) {
            addCriterion("chooseCourse not like", value, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseIn(List<String> values) {
            addCriterion("chooseCourse in", values, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseNotIn(List<String> values) {
            addCriterion("chooseCourse not in", values, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseBetween(String value1, String value2) {
            addCriterion("chooseCourse between", value1, value2, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosecourseNotBetween(String value1, String value2) {
            addCriterion("chooseCourse not between", value1, value2, "choosecourse");
            return (Criteria) this;
        }

        public Criteria andChoosegroupIsNull() {
            addCriterion("choosegroup is null");
            return (Criteria) this;
        }

        public Criteria andChoosegroupIsNotNull() {
            addCriterion("choosegroup is not null");
            return (Criteria) this;
        }

        public Criteria andChoosegroupEqualTo(String value) {
            addCriterion("choosegroup =", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupNotEqualTo(String value) {
            addCriterion("choosegroup <>", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupGreaterThan(String value) {
            addCriterion("choosegroup >", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupGreaterThanOrEqualTo(String value) {
            addCriterion("choosegroup >=", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupLessThan(String value) {
            addCriterion("choosegroup <", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupLessThanOrEqualTo(String value) {
            addCriterion("choosegroup <=", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupLike(String value) {
            addCriterion("choosegroup like", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupNotLike(String value) {
            addCriterion("choosegroup not like", value, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupIn(List<String> values) {
            addCriterion("choosegroup in", values, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupNotIn(List<String> values) {
            addCriterion("choosegroup not in", values, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupBetween(String value1, String value2) {
            addCriterion("choosegroup between", value1, value2, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosegroupNotBetween(String value1, String value2) {
            addCriterion("choosegroup not between", value1, value2, "choosegroup");
            return (Criteria) this;
        }

        public Criteria andChoosenumIsNull() {
            addCriterion("choosenum is null");
            return (Criteria) this;
        }

        public Criteria andChoosenumIsNotNull() {
            addCriterion("choosenum is not null");
            return (Criteria) this;
        }

        public Criteria andChoosenumEqualTo(Integer value) {
            addCriterion("choosenum =", value, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumNotEqualTo(Integer value) {
            addCriterion("choosenum <>", value, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumGreaterThan(Integer value) {
            addCriterion("choosenum >", value, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumGreaterThanOrEqualTo(Integer value) {
            addCriterion("choosenum >=", value, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumLessThan(Integer value) {
            addCriterion("choosenum <", value, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumLessThanOrEqualTo(Integer value) {
            addCriterion("choosenum <=", value, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumIn(List<Integer> values) {
            addCriterion("choosenum in", values, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumNotIn(List<Integer> values) {
            addCriterion("choosenum not in", values, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumBetween(Integer value1, Integer value2) {
            addCriterion("choosenum between", value1, value2, "choosenum");
            return (Criteria) this;
        }

        public Criteria andChoosenumNotBetween(Integer value1, Integer value2) {
            addCriterion("choosenum not between", value1, value2, "choosenum");
            return (Criteria) this;
        }

        public Criteria andGroupscoreIsNull() {
            addCriterion("groupscore is null");
            return (Criteria) this;
        }

        public Criteria andGroupscoreIsNotNull() {
            addCriterion("groupscore is not null");
            return (Criteria) this;
        }

        public Criteria andGroupscoreEqualTo(Float value) {
            addCriterion("groupscore =", value, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreNotEqualTo(Float value) {
            addCriterion("groupscore <>", value, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreGreaterThan(Float value) {
            addCriterion("groupscore >", value, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreGreaterThanOrEqualTo(Float value) {
            addCriterion("groupscore >=", value, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreLessThan(Float value) {
            addCriterion("groupscore <", value, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreLessThanOrEqualTo(Float value) {
            addCriterion("groupscore <=", value, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreIn(List<Float> values) {
            addCriterion("groupscore in", values, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreNotIn(List<Float> values) {
            addCriterion("groupscore not in", values, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreBetween(Float value1, Float value2) {
            addCriterion("groupscore between", value1, value2, "groupscore");
            return (Criteria) this;
        }

        public Criteria andGroupscoreNotBetween(Float value1, Float value2) {
            addCriterion("groupscore not between", value1, value2, "groupscore");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}